import time

from selenium import webdriver
from selenium.webdriver.common.by import By

# 1.打开浏览器
from selenium.webdriver.common.keys import Keys
# 创建浏览器对象
driver = webdriver.Chrome()
# 2.输入访问地址（URL）
driver.get("http://121.43.169.97:8848/pageA.html")
# 放大浏览器页面
driver.maximize_window()


# 暂停2秒
time.sleep(2)
# 滚动条拉到最底层
js = "window.scrollTo(0,10000)"     #0  X 左边距   y10000   右边距
driver.execute_script(js)

time.sleep(2)
js2 = "window.scrollTo(0,0)"
driver.execute_script(js2)